#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()

def printList(event):
    print lb.get(lb.curselection())

lb = Listbox(root, selectmode=EXTENDED)
lb.bind('<Return>', printList)
lb.bind('<Double-Button-1>', printList)
for item in range(10):
    lb.insert(END, str(item*100))

lb.pack()
root.mainloop()
